package com.stadium.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 赛事详情
 *
 * @author wsl
 * @email
 * @date 2021-05-04 09:39:10
 */
@Data
@ApiModel(value = "赛事详情Vo")
public class GameEventVo {
    private static final long serialVersionUID = 1L;

    @Length(min = 0, max = 36)
    @ApiModelProperty(value = "id")
    private String id;

    @Length(min = 0, max = 36)
    @ApiModelProperty(value = "赛事分类id")
    private String categoryId;

    @Length(min = 0, max = 36)
    @ApiModelProperty(value = "用户id")
    private String userId;

    @Length(min = 0, max = 50)
    @ApiModelProperty(value = "名称")
    private String name;

    @Length(min = 0, max = 100)
    @ApiModelProperty(value = "地点")
    private String address;

    @Length(min = 0, max = 100)
    @ApiModelProperty(value = "场馆")
    private String stadium;

    @ApiModelProperty(value = "报名费用")
    private Double registrationFee;

    @ApiModelProperty(value = "报名开始时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date registrationStarttime;

    @ApiModelProperty(value = "报名结束时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date registrationEndtime;

    @ApiModelProperty(value = "比赛时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date competitionStarttime;

    @ApiModelProperty(value = "比赛结束时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date competitionEndtime;

    @Length(min = 0, max = 50)
    @ApiModelProperty(value = "主办方")
    private String sponsor;

    @Length(min = 0, max = 50)
    @ApiModelProperty(value = "联系电话")
    private String phoneNum;

    @ApiModelProperty(value = "赛事logo")
    private String logo;

    @ApiModelProperty(value = "背景图")
    private String background;

    @ApiModelProperty(value = "比赛规则")
    private String ruleId;

    @ApiModelProperty(value = "注意事项")
    private String remark;

}
